import { API } from '@/services/model/baseModel';
import { HomeModel } from '@/services/model/homeModel';
import config from '@/utils/config';
import { request } from '@/utils/http';

/**
 * 首页数据
 * @returns 轮播/分类等
 */
const getHomeData = () => {
  return request.get<API<HomeModel>>(config.url.home);
};

export { getHomeData };
